import request from '@/config/axios'

export interface BacklogItemsVO {
                    id: number
                    businessId: number
                    businessType: string
                    conent: string
                    status: boolean
}

// 查询待办事项列表
export const getBacklogItemsPage = async (params) => {
  return await request.get({ url: '/pro/backlog-items/page', params })
}

// 查询待办事项详情
export const getBacklogItems = async (id: number) => {
  return await request.get({ url: '/pro/backlog-items/get?id=' + id })
}

// 新增待办事项
export const createBacklogItems = async (data: BacklogItemsVO) => {
  return await request.post({ url: '/pro/backlog-items/create', data })
}

// 修改待办事项
export const updateBacklogItems = async (data: BacklogItemsVO) => {
  return await request.put({ url: '/pro/backlog-items/update', data })
}

// 删除待办事项
export const deleteBacklogItems = async (id: number) => {
  return await request.delete({ url: '/pro/backlog-items/delete?id=' + id })
}

// 导出待办事项 Excel
export const exportBacklogItemsApi = async (params) => {
  return await request.download({ url: '/pro/backlog-items/export-excel', params })
}